package entities;

public class MessageManager {


	/**
	 * The Enum Message type.
	 */
	public enum msgType{
		
		/** The login request. */
		LOGIN_REQUEST,
		
		/** The logout request. */
		LOGOUT_REQUEST,
		
		/** GetClientInfoByFirstName. */
		CLIENT_INFO_BY_FIRST_NAME,
		
		/** GetClientInfoByFirstName. */
		CLIENT_INFO_BY_ID,
		

	};

	/** The type. */
	protected msgType type;

	/**
	 * The Enum message Response.
	 */
	public enum msgResponse
	{
		
		/** The success. */
		SUCCESS,
		
		/** The failed. */
		FAILED,
		
		/** The subscriber exists. */
		SUBSCRIBER_EXISTS,
		
		/** The subscriber exists multiple cars. */
		SUBSCRIBER_EXISTS_MULTIPLE_CARS,
		
		/** The subscriber exists but expired. */
		SUBSCRIBER_EXISTS_BUT_EXPIRED,
		
		/** The subscriber exists but expired multiple cars. */
		SUBSCRIBER_EXISTS_BUT_EXPIRED_MULTIPLE_CARS,
		
		/** The subscriber not exists multiple cars. */
		SUBSCRIBER_NOT_EXISTS_MULTIPLE_CARS,
		
		/** The subscriber not exists. */
		SUBSCRIBER_NOT_EXISTS,
		
		/** The bad username or password. */
		BAD_USERNAME_OR_PASSWORD,
		
		/** The subscribtion success. */
		SUBSCRIBTION_SUCCESS,
		
		/** The subscription is over. */
		SUBSCRIPTION_IS_OVER,
		
		/** The get data subscribe success. */
		GET_DATA_SUBSCRIBE_SUCCESS,
		
		/** The user is already connected. */
		USER_IS_ALREADY_CONNECTED,
		
		/** The subscriber not exists one car. */
		SUBSCRIBER_NOT_EXISTS_ONE_CAR,
		
		/** The data not exsits. */
		DATA_NOT_EXSITS
	};

	/** The msg response type. */
	protected msgResponse msgResponseType;

	/**
	 * Gets the msg type.
	 *
	 * @return the msg type
	 */
	public msgType getMsgType() {
		return this.type;
	}

	/**
	 * Sets the msg type.
	 *
	 * @param type the new msg type
	 */
	public void setMsgType(msgType type)
	{
		this.type = type;
	}

	/**
	 * Gets the msg response.
	 *
	 * @return the msg response
	 */
	public msgResponse getMsgResponse() {
		return this.msgResponseType;
	}

	/**
	 * Sets the msg response.
	 *
	 * @param msgResponse the new msg response
	 */
	public void setMsgResponse(msgResponse msgResponse)
	{
		this.msgResponseType = msgResponse;
	}


	/**
	 * Instantiates a new msg mng.
	 */
	public MessageManager() {

	}

}
